]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Initialize permissions
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Feb 2017 10:47:45 +0000 (11:47 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Feb 2017 22:20:14 +0000 (23:20 +0100)
The permissions hash is initialized after consulting the permission
store, however the lookup is skipped for requests that cannot be
resolved to an application, resulting in an error when accessing
the uninitialized hash for saving. Just make sure that the property
is always initialized to avoid that error.

https://bugzilla.gnome.org/show_bug.cgi?id=778661

js/ui/status/location.js

index b1e97c74c9cba5cc635ce4f1a4891a086727e0fd..668f93c2df2ab5ca2c53dab5611f8eeccdad055f 100644 (file)
@@ -284,6 +284,7 @@ const AppAuthorizer = new Lang.Class({
         this.reqAccuracyLevel = reqAccuracyLevel;
         this._permStoreProxy = permStoreProxy;
         this._maxAccuracyLevel = maxAccuracyLevel;
+        this._permissions = {};
 
         this._accuracyLevel = GeoclueAccuracyLevel.NONE;
     },